from django.conf.urls import url
from rest_framework.routers import DefaultRouter

from areas.views import AreasViewSet

router = DefaultRouter()
router.register(r'infos',AreasViewSet,base_name='area')
urlpatterns = [
# 请求方式 GET /areas/infos/请求省份数据
    # url(r'^infos/$')
    # 请求方式 GET/areas/infos/(?P<pk>\d+)/ 请求城市或区县数据
]
#添加省市区信息查询路由
urlpatterns += router.urls